package com.deep.test

import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.mllib.random.RandomRDDs._
/**
 * @author sw
 * @create 2023-05-29 15:57
 */
object Test11 {
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setMaster("local").setAppName("ALS")
    val sc = new SparkContext(conf)
    sc.setLogLevel("WARN")

    val u = normalRDD(sc, 10000000L, 10)
    val v = u.map(x => 1.0 + 2.0 * x)
    println(u)
    println(v)

  }
}
